package com.futureCloudMOM.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.futureCloudMOM.core.entity.FBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Produce_ReportNG", description = "报工不良报废表")
@TableName(value = "Produce_ReportNG")
public class ProduceReportNg extends FBaseEntity implements Serializable {


    
    @NotNull(message="[报工单Id]不能为空")
    @ApiModelProperty("报工单Id")
    @TableField(value = "reportId")
    private Long reportId;
    
    @NotNull(message="[派工单Id]不能为空")
    @ApiModelProperty("派工单Id")
    @TableField(value = "dispatchId")
    private Long dispatchId;
    
    @NotNull(message="[任务子项工序Id]不能为空")
    @ApiModelProperty("任务子项工序Id")
    @TableField(value = "taskSubId")
    private Long taskSubId;
    
    @NotBlank(message="[数量]不能为空")
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("数量")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "qty")
    private String qty;
    
    @ApiModelProperty("报工人")
    @TableField(value = "reportEmpId")
    private Long reportEmpId;
    
    @NotNull(message="[创建时间]不能为空")
    @ApiModelProperty("创建时间")
    @TableField(value = "createTime")
    private Date createTime;
    
    @NotBlank(message="[报废/不良]不能为空")
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("报废/不良")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "scrapOrRework")
    private String scrapOrRework;
    
    @NotBlank(message="[报废/不良原因]不能为空")
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("报废/不良原因")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "reason")
    private String reason;
    
    @NotBlank(message="[报废/不良原因代码]不能为空")
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("报废/不良原因代码")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "reasonCode")
    private String reasonCode;
    
    @NotNull(message="[状态 0新 1已生成报废标签-1已删除]不能为空")
    @ApiModelProperty("状态 0新 1已生成报废标签-1已删除")
    @TableField(value = "status")
    private Long status;






}

